//
//  FactoryMode.m
//  Leisure
//
//  Created by xalo on 16/6/29.
//  Copyright © 2016年 张凡. All rights reserved.
//

#import "FactoryMode.h"

@implementation FactoryMode

+ (BaseCell *)productCellWithModel:(id)model tableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    
    BaseCell *cell = [tableView dequeueReusableCellWithIdentifier:[NSString stringWithFormat:@"%@_cell", NSStringFromClass([model class])] forIndexPath:indexPath];
    //设置cell的样式
    [cell setCellWithModel:model];
    return cell;
}

@end
